.qrlogin-modal-header {
    padding: 16px;
}

.qrlogin-modal-filepaste {
    width: 30rem;
    height: 13rem;
    border-radius: 1rem;
    background-color: var(--background-secondary-alt);
    border-style: dashed;
    border-color: var(--input-border);
    border-width: 4px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    overflow: hidden;
    transition: 200ms background-color ease-in-out, 200ms border-color ease-in-out,
        200ms opacity ease-in-out, 200ms border-width ease-in-out,
        250ms width cubic-bezier(0.76, 0, 0.24, 1),
        250ms height cubic-bezier(0.76, 0, 0.24, 1);
}

.qrlogin-modal-filepaste * {
    pointer-events: none;
}

.qrlogin-modal-filepaste-drop {
    background-color: var(--mention-background);
}

.qrlogin-modal-filepaste-disabled {
    background-color: var(--background-secondary-alt) !important;
    opacity: 0.5;
    cursor: unset;
}

.qrlogin-modal-filepaste-preview {
    border-width: 0;
    background-color: #0005;
}

.qrlogin-modal-filepaste-preview video {
    object-fit: fill;
}

.qrlogin-preview-crosses {
    animation: 500ms preview-crosses cubic-bezier(0.25, 1, 0.5, 1) forwards;
}

.qrlogin-preview-cross {
    position: absolute;
    width: var(--size);
    height: var(--size);
    transform: translate(-50%, -50%) rotate(var(--rot));

    --size: 0rem;
    --rot: 0deg;
}

.qrlogin-preview-cross img {
    width: var(--size);
    height: var(--size);
    transform-origin: bottom right;
    animation: 300ms cross ease-out forwards 500ms;
    opacity: 0;
}

.qrlogin-modal-button {
    margin: 1rem 0;
    width: 100%;
}

.qrlogin-device-content {
    padding: 24px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 2px;
}

.qrlogin-device-image {
    height: 8rem;
    user-select: none;
}

.qrlogin-device-header {
    margin: 6px 0 12px;
}

.qrlogin-device-confirm {
    margin-top: 18px;
    width: 20rem;
    background: linear-gradient(to right,
            var(--button-danger-background) calc(var(--progress) - 1%),
            var(--button-danger-background-active) var(--progress)) !important;
    border-radius: 420rem;

    --progress: 0%;
}

.qrlogin-device-footer {
    justify-content: space-between;
}

.qrlogin-settings-btns {
    display: flex;
    align-items: center;
    gap: 8px;
}

[data-tab-id="Scan QR Code"]::before {
    /* stylelint-disable-next-line property-no-vendor-prefix */
    -webkit-mask: var(--si-scan-qr-code) center/contain no-repeat !important;
    mask: var(--si-scan-qr-code) center/contain no-repeat !important;

    --si-scan-qr-code: url("");
}

@keyframes cross {
    0% {
        transform: scale(1.25);
    }

    100% {
        opacity: 1;
    }
}

@keyframes preview-crosses {
    to {
        transform: translate(var(--offset-x), var(--offset-y)) scale(var(--scale));
    }
}